<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\gao\WechatController;
use App\Http\Controllers\Api\gao\MassageController;
use App\Http\Controllers\Admin\gao\OwnerController;
use App\Http\Controllers\Api\gao\AgentController;
use App\Http\Controllers\Api\gao\LiveController;
use App\Http\Controllers\Admin\gao\FinishController;
use App\Http\Controllers\Api\gao\StoreController;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//微信服务器接入
Route::match(['get','post'],'/wechat', [WechatController::class, 'check']);

//获取经纪人列表
//Route::get('agent/index',[AgentController::class,'index']);

//发送消息
Route::post('sendMsg',[MassageController::class,'sendMsg']);
//推荐喜欢
//Route::get('like',[RecommendController::class,'like']);

//--------------------房东模块-------------------------

//房东列表展示
Route::get('/owner/index',[OwnerController::class,'index']);
//房东添加
Route::post('/owner/create',[OwnerController::class,'create']);
//房东修改
Route::post('/owner/update',[OwnerController::class,'update']);
//房东删除
Route::get('/owner/del',[OwnerController::class,'del']);

//--------------------经纪人模块-------------------------

//经纪人列表展示
Route::get('/agentIndex',[AgentController::class,'index']);
//经纪人添加
Route::post('/agentCreate',[AgentController::class,'create']);
//经纪人修改
Route::post('/agentUpdate',[AgentController::class,'update']);
//经纪人删除
Route::get('/agentDel',[AgentController::class,'del']);

//--------------------直播模块-------------------------

//经纪人列表展示
Route::get('/live/index',[LiveController::class,'index']);
//经纪人添加
Route::post('/live/create',[LiveController::class,'create']);
//经纪人修改
Route::post('/live/update',[LiveController::class,'update']);
//经纪人删除
Route::get('/live/del',[LiveController::class,'del']);



//--------------------装修模块-------------------------

//装修列表展示
Route::get('/finish/index',[FinishController::class,'index']);
//装修添加
Route::post('/finish/create',[FinishController::class,'create']);
//装修修改
Route::post('/finish/update',[FinishController::class,'update']);
//装修删除
Route::get('/finish/del',[FinishController::class,'del']);


//--------------------门店模块-------------------------

//门店列表展示
Route::get('/store/index',[StoreController::class,'index']);
//门店添加
Route::post('/store/create',[StoreController::class,'create']);
//门店修改
Route::post('/store/update',[StoreController::class,'update']);
//门店删除
Route::get('/store/del',[StoreController::class,'del']);

//门店评论
Route::get('/store/comments',[StoreController::class,'lookComments']);
